<?php 
use backend\assets\MemberAssets;
use frontend\models\UserdetailForm;
use frontend\models\City;
use yii\helpers\ArrayHelper;
/*@var $this yii\web\view */
MemberAssets::register($this);
$this->title='会员管理';
?>

<?php $this->beginBlock('pagename'); ?>
	会员管理
<?php $this->endBlock(); ?>
<div class="col-sm-12">
	<h3 class="header blue lighter smaller">
		<i class="ace-icon fa fa-folder-o smaller-90"></i>
		会员管理
	</h3>

	<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all" >
		<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
			<li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="tabs-1" aria-labelledby="ui-id-29" aria-selected="true" aria-expanded="true">
				<a href="#tabs-1" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-29">会员列表</a>
			</li>

			<li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="tabs-2" aria-labelledby="ui-id-30" aria-selected="false" aria-expanded="false">
				<a href="#tabs-2" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-30">会员添加</a>
			</li>

			
		</ul>

	<div id="tabs-1" aria-labelledby="ui-id-29" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-hidden="false" style="display: block;" >
		<!-- 插入会员管理模块 -->
		<div class="row">
				<div class="col-xs-12">
						<div class="clearfix">
							<div class="pull-right tableTools-container"></div>
						</div>
						<div class="table-header">
							&nbsp;&nbsp;&nbsp;
						</div>
	
							<!-- div.table-responsive -->
	
							<!-- div.dataTables_borderWrap -->
						<div>
							<!-- 插入会员管理datatables -->
							<table id="dynamic-table" class="table table-striped table-bordered table-hover">
									<thead>
										<tr>
											<th class="center">
												<label class="pos-rel">
													<input type="checkbox" class="ace" />
													<span class="lbl"></span>
												</label>
											</th>
											<th>用户名</th>
											<th>邮箱</th>
											<th class="hidden-480">会员姓名</th>
			
											<th>
												<i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>
												余额
											</th>
											<th class="hidden-480">注册日期</th>
											<th>管理</th>
										</tr>
									</thead>						
							</table>
							<!-- 插入会员管理datatables -->
						</div>
				</div>
			</div>
			<!-- 插入会员管理模块 -->
		<!-- 插入dialog模块 -->
			<div id="dialog-message" class="hide">
				<!-- 插入查看会员收货地址的dialog-->
			</div>
			<div id="dialog-confirm" class="hide">
				<div class="alert alert-info bigger-110">
					这些信息将被永久删除，无法恢复。
				</div>

				<div class="space-6"></div>

				<p class="bigger-110 bolder center grey">
					<i class="ace-icon fa fa-hand-o-right blue bigger-120"></i>
					是否确定?
				</p>
			</div>
		<!-- 插入dialog模块 -->
	</div>

		<div id="tabs-2" aria-labelledby="ui-id-30" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-hidden="false" style="display: block;">
			<?=$this->render('_addmember',['model'=>$model,'tableid'=>$tableid]) ?>
		</div>

		
	</div>
</div><!-- ./col -->
<?php 

$js = <<<JS
$(function(){
		$( "#tabs" ).tabs();	
		$( "#tabs" ).tabs({'active':$tableid});
	})
JS;

$this->registerJs($js);
?>